#

| Chapter 10 The Sed Editor |

## n

    [address1][,address2]n

Read next line of input into pattern space. The current line is sent to standard output, and the next line becomes the current line. Control passes to the command following n instead of resuming at the top of the script.

### Example

In the ms macros, a section header occurs on the line below an .NH macro. To print all lines of header text, invoke this script with sed -n:

>     /^\.NH/{
>     n
>     p
>     }

Reference: l |  | Reference: N